//用户第二层

//获取管理员列表
const { getUserAll3,serchUserAll3 ,getAllHireUsers,queryHireByName,queryHireByPhone,getUnUsers,updateUserState} = require('../../dao/user/usersDao')
module.exports.getUserAll2 = async (data)=>{
   return await getUserAll3(data);
}

//搜索用户
module.exports.serchUserAll2 = async (data)=>{
    return await serchUserAll3(data);
 }


//获取所有hire用户
 module.exports.getAllHireUsers = async (data)=>{
    if(data.type){
      return await getAllHireUsers(data);
    }else if(data.authentication){
       //console.log(data);
       
      return await getUnUsers(data);
    }
    
  
}
//名字查询 
module.exports.queryHireByName = async (data)=>{
   return await queryHireByName(data);
}
//电话号码查询  queryHireByPhone
module.exports.queryHireByPhone = async (data)=>{
   return await queryHireByPhone(data);
}

//修改用户审核状态 
module.exports.updateUserState = async (data)=>{
   return await updateUserState(data);
}
